package com.warren.context;



/**
 * @author warren
 * @create 2021-08-22 15:50
 * @Description 上下文处理事件提供类
 */
public class ApplicationContextEvent extends ApplicationEvent {

    /**
     * 构建一个原型事件.
     *
     * @param source 最初发生事件的对象.
     * @throws IllegalArgumentException if source is null.
     */
    public ApplicationContextEvent(Object source) {
        super(source);
    }

    /**
     * 获取为其引发事件的 <code>ApplicationContext<code>.
     */
    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }

}
